<template>
  <view class="page">
    <UserDate/>
    <view class="tcard flexC">
      <img class="success" :src="`${$store.state.baseApi}/bg-header/sign_success.png`" alt="">
      <view class="success_txt">
        门诊签到成功
      </view>
    </view>
    
    <view class="tcard">
      <view class="title">
        签到信息
      </view>
      <view class="tform">
        <view class="tform-item">
          <view class="label">预约院区</view>
          <view class="value">雅安市人民医院（大兴院区）</view>
        </view>
        <view class="tform-item">
          <view class="label">医院地址</view>
          <view class="value">
            <view class="pst flexC">
              <img :src="`${$store.state.baseApi}/icon/navigation.png`" alt="">
              导航
            </view>
            四川省雅安市雨城区大兴镇健康路
          </view>
        </view>
        <view class="tform-item">
          <view class="label">预约科室</view>
          <view class="value">骨科门诊</view>
        </view>
        <view class="tform-item">
          <view class="label ">就诊位置</view>
          <view class="value red">
            <view class="pst flexC" @click="$router.push('/pages/navInHsp/navInHsp')">
              <img :src="`${$store.state.baseApi}/icon/way.png`" alt="">
              路线
            </view>
            门诊三楼B区外科诊区
          </view>
        </view>
        <view class="tform-item">
          <view class="label">预约医生</view>
          <view class="value">肖友明（副主任医师）</view>
        </view>
        <view class="tform-item">
          <view class="label">预约时间</view>
          <view class="value red">2024-08-12（周一） 10:00～10:30</view>
        </view>
        <view class="tform-item" style="border: none;">
          <view class="label">序号</view>
          <view class="value">10</view>
        </view>
        <view class="line"></view>
        <view class="toDetail" @click="toPage">
          查看候诊详情 >>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import UserDate from '@/components/UserInfo/user-date.vue'
  export default {
    components: {UserDate},
    data() {
      return {
        
      }
    },
    methods: {
      toPage() {
        uni.navigateTo({
          url: `./queue`
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
.tcard {
  align-items: center;
  .success {
    width: 110upx;
    height: 110upx;
  }
  .success_txt {
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    font-size: 36upx;
    color: #4ED1AC;
    line-height: 54upx;
    margin-top: 10upx;
  }
}
.value {
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  font-size: 28upx;
  color: rgba(0,0,0,0.7);
  line-height: 44upx;
  position: relative;
  .pst {
    height: 0;
    margin-top: -10upx;
    margin-left: 10px;
    align-items: center;
    float: right;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 24upx;
    color: #3E81F7;
    line-height: 44upx;
    margin-right: -8upx;
    >img {
      width: 32upx;
      height: 32upx;
    }
  }
}
</style>
